class PrintChar{
	    	constructor(str,num){
                 var result="";
                 this.num=num;
                 this.str=str;
	    	this.for1=function(str,num){
	    		                for(var i=0;i<this.num;i++){
	    	                    var result="";
	    	                    if(i%2==false){
	    	                    	for(var a=0;a<=i;a++){
	    		                  result+=this.str;
	    		                  
	    	}
	    console.log(result);}
	    } 
	}
	    			this.for2=function(){
	    				for(var i=this.num;i>0;i--){
	    					var result="";
	    					if(i%2 ==false){
	    						for(var a=0;a<i;a++){
	    						result+=this.str;
	    					}
	    					console.log(result);}
	    				}
	    			}
	    	}
	    }

            var p1=new PrintChar("C",10);
            p1.for2();